package com.ls.controller.banner;

import com.ls.service.IBannerService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "banner相关接口", tags = "banner相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/bannerApp")
public class BannerAppController {
    private final IBannerService service;
    /** app轮播图列表 */
    @GetMapping("getBanner")
    public ResultData getBanner() {
        return service.getBanner();
    }
}
